//
//  HomeView.swift
//  demo1
//
//  Created by raymond on 2022/5/15.
//

import SwiftUI

struct HomeView: View {
  var body: some View {
    VStack {
      Text("All About")
        .font(.largeTitle)
        .fontWeight(.bold)
        .padding()
      
      Image(information.image)
        .resizable()
        .aspectRatio(contentMode: .fit)
        .cornerRadius(10)
        .padding(40)
      
      Text(information.name)
        .font(.title)
    }
  }
}

struct HomeView_Previews: PreviewProvider {
  static var previews: some View {
    HomeView()
  }
}
